#!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#     http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v2 for more details.
# ******************************************************************************/
import click


@click.command("install", help="安装软件包")
@click.option(
    "-a",
    "--arch",
    help="软件包安装环境的架构",
    type=click.Choice(["x86", "aarch64"], case_sensitive=False),
    default="x86",
    show_default=True,
    required=True,
)
@click.option("-pr", "--pull-request", "pull_request", help="pull request的完整url")
@click.option("-tb", "--target-branch", "target_branch", help="pull request的目标分支")
@click.option("-p", "--packages", help="需要安装验证的包列表")
@click.option("--multiple/--no-multiple", default=False, help="多个软件包安装,默认单包安装")
@click.option("--ignore/--no-ignore", default=False, help="多个软件包安装,默认单包安装")
def install(arch, pull_request, target_branch, packages, multiple, ignore):
    click.echo("start check install")


__all__ = "install"
